package com.ww.springboot.boot.util.dto;

import lombok.Data;
import org.apache.poi.ss.usermodel.CellStyle;

/**
 * 描述：
 *
 * @author wanwei
 * @since 2021-10-13 09:49
 */
@Data
public class XlsInvoiceDTO {

	private Boolean isMerge;
	private Integer y1;
	private Integer y2;
	private Integer x1;
	private Integer x2;
	private Object text;
	private CellStyle style;

	public XlsInvoiceDTO(Integer y1, Integer y2, Integer x1, Integer x2, Object text, CellStyle style) {
		this.y1 = y1;
		this.y2 = y2;
		this.x1 = x1;
		this.x2 = x2;
		this.text = text;
		this.style = style;
		this.isMerge = true;
	}

	public XlsInvoiceDTO(Boolean isMerge, Integer y1, Integer y2, Integer x1, Integer x2, Object text, CellStyle style) {
		this.isMerge = isMerge;
		this.y1 = y1;
		this.y2 = y2;
		this.x1 = x1;
		this.x2 = x2;
		this.text = text;
		this.style = style;
	}
}
